<?php
class ml_model_mcTinyurl extends Lib_cache_mc 
{
    public function __construct()
    {
        $server = ml_factory::load_standard_conf('mc');
        $this->init_cache(0,4);
        $this->connect($server['tinyurl']);
    }
    
    public function longurl2tiny($url)
    {
        return $this->get($url);
    }
    
    public function tiny2longurl($tiny)
    {
        return $this->get($tiny);
    }
}